import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

const Discovery =() => import('views/discovery/discovery')
const Playlists =() => import('views/playlists/playlists')
const Songs =() => import('views/songs/songs')
const Mvs =() => import('views/mvs/mvs')
const Deatils =()=>import('views/discovery/details/detailsinfo')
const Result =()=>import('views/result/result')
const MvDeatils =()=>import('views/mvs/children/detailsmv')

const routes=[
  {
    path:'/',
    redirect: '/discovery'
  },
  {
    path:'/discovery',
    component:Discovery,
  },
  {
    path:'/playlists',
    component: Playlists 
  },
  {
    path:'/songs',
    component: Songs 
  },
  {
    path:'/mvs',
    component: Mvs
  },
  {
    path:'/playlist/',
    component:Deatils
  },
  {
    path:'/result/',
    component:Result
  },
  {
    path:'/mv/',
    component:MvDeatils
  }
]

const router = new VueRouter({
  routes
})

export default router
